﻿using Glorysoft.EAP.Core.Entities.DB.Contract;
using System;
using System.Collections.Generic;
using System.Text;

namespace Glorysoft.EAP.Core.Entities.DB.Service
{
    public class RPT_NEEDMARK_HISTORYService //: FreeSqlContext//, IRPT_MonitorTimeService
    {
        public static int Insert(RPT_NEEDMARK_HISTORY entity)
        {
            return FreeSqlContext.Insert<RPT_NEEDMARK_HISTORY>(entity);
        }
        public static int Delete(int id)
        {        
            return FreeSqlContext.Delete<RPT_NEEDMARK_HISTORY>(id);
        }
        public static IList<RPT_NEEDMARK_HISTORY> SelectAll()
        {
            return FreeSqlContext.SelectAll<RPT_NEEDMARK_HISTORY>();
        }

        public static RPT_NEEDMARK_HISTORY SelectById(int id)
        {
            return FreeSqlContext.SelectById<RPT_NEEDMARK_HISTORY>(id);
        }
    }
}
